package com.sfac.javaSpringBoot.modules.account.controller;

import java.util.Scanner;

class C {
    C() {
        System.out.println("class c被调用");
        System.out.print("C");
    }
}

class A {
    C c = new C();

    A() {
        this("A");
        System.out.println("class a 的a()方法被调用");
        System.out.print("A");
    }

    A(String s) {
        System.out.println("class a 的a(String s)方法被调用");
        System.out.print(s);
    }
}

class Test extends A {
    Test() {
        super("B");
        System.out.println("test开始运行");
        System.out.print("B");
        System.out.println("test运行结束");
    }

    public static void main(String[] args) {
        System.out.println("main开始被调用");
        new Test();
        System.out.println("main结束被调用");
    }
}
